package com.dm.dto;

import lombok.Data;

/**
 * @author hqw521@qq.com
 * @date 2018/12/5 20:33
 */
@Data
public class FolderAttributeDto extends AttributeDto {
    /**
     * 包含文件夹个数
     */
    private Integer folderSize;

    /**
     * 包含文件个数
     */
    private Integer fileSize;

    public void setFolderSize(Object folderSize) {
        if (folderSize instanceof Integer) {
            this.folderSize = (Integer) folderSize;
        } else {
            this.folderSize = Integer.valueOf(folderSize.toString());
        }
    }

    public void setFileSize(Object fileSize) {
        if (fileSize instanceof Integer) {
            this.fileSize = (Integer) fileSize;
        } else {
            this.fileSize = Integer.valueOf(fileSize.toString());
        }
    }
}
